package com.itzdm.client.client;

import com.itzdm.client.config.DefaultFeignConfig;
import com.itzdm.client.fallback.MessageFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @作者：张德明
 * @时间：2025/4/17 19:29
 */
@FeignClient(value = "message-service", fallback = MessageFallback.class, configuration = DefaultFeignConfig.class)
public interface MessageClient {

    // 删除双方的聊天记录
    @DeleteMapping("/message/delete")
    void deleteMessage(@RequestParam("userId") Long userId, @RequestParam("friendId") Long friendId);
}
